﻿@model StoreManager.Models.ImportOrder

@{
    ViewBag.Title = "Delete";
    var importDetail = new StoreManager.Models.ImportOrderDetail();    
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ImportOrder</legend>

    <div class="display-label">
         @Html.HiddenFor(model => model.ImportOrderID)
         @Html.DisplayNameFor(model => model.ImportOrderNo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ImportOrderNo)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.StaffID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StaffID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Type)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Type)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SupplierID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SupplierID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.CreatedBy)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreatedBy)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedBy)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedBy)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Created)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Created)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.LastModified)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastModified)
    </div>
</fieldset>
 <table>
             <tr>
                <td>@Html.DisplayNameFor(i => importDetail.Type)</td>
                <td>@Html.DisplayNameFor(i => importDetail.ProductID)</td>
                <td>@Html.DisplayNameFor(i => importDetail.Quantity)</td>
                <td>@Html.DisplayNameFor(i => importDetail.Price)</td>
                <td></td>
            </tr>
           @for(int i = 0; i < @Model.ImportOrderDetails.Count; i++) {
            <tr>
                <td> @Html.DisplayFor(model => model.ImportOrderDetails[i].Type)
                </td>
                <td> @Html.DisplayFor(model => model.ImportOrderDetails[i].ProductID)
                </td>
                <td>@Html.DisplayFor(model => model.ImportOrderDetails[i].Quantity)</td>
                <td>@Html.DisplayFor(model => model.ImportOrderDetails[i].Price)
                </td>
                <td></td>
            </tr>
           }
        </table> 
@using (Html.BeginForm()) {
    <p>
         @Html.HiddenFor(model => model.ImportOrderID)
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
